﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RXY_Mall.Services.User.Dto
{
    /// <summary>
    /// 批量添加用户信息输入信息
    /// </summary>
    public class AddUserInput : MangerBaseInput
    {
        /// <summary>
        /// 用户录入信息
        /// </summary>
        public List<UserInput> users { get; set; }
    }

    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserInput
    {
        /// <summary>
        /// 对接管理员编号
        /// </summary>
        [Required(ErrorMessage = "对接管理员编号不能为空")]
        public string api_manager_id { get; set; }
        /// <summary>
        /// 对接用户编号
        /// </summary>
        [Required(ErrorMessage = "对接用户编号不能为空")]
        public string api_user_id { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [Required(ErrorMessage = "手机号不能为空")]
        public string mobile { get; set; }
        /// <summary>
        /// 门店名称
        /// </summary>
        [Required(ErrorMessage = "门店名称不能为空")]
        public string store_name { get; set; }
        /// <summary>
        /// 门店类型
        /// </summary>
        [Required(ErrorMessage = "门店类型不能为空")]
        public byte store_type { get; set; }
        /// <summary>
        /// 收货人
        /// </summary>
        [Required(ErrorMessage = "收货人不能为空")]
        public string accepter_name { get; set; }
        /// <summary>
        /// 区域
        /// </summary>
        [Required(ErrorMessage = "区域不能为空")]
        public string area { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        [Required(ErrorMessage = "详细地址不能为空")]
        public string address { get; set; }
        /// <summary>
        /// 省级国标码
        /// </summary>
        [Required(ErrorMessage = "省级国标码不能为空")]
        public string province_code { get; set; }
        /// <summary>
        /// 市级国标码
        /// </summary>
        [Required(ErrorMessage = "市级国标码不能为空")]
        public string city_code { get; set; }
        /// <summary>
        /// 区级国标码
        /// </summary>
        [Required(ErrorMessage = "区级国标码不能为空")]
        public string country_code { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
    }

    /// <summary>
    /// 订单状态输出信息
    /// </summary>
    public class UserOutput
    {
        /// <summary>
        /// 对接订单号
        /// </summary>
        public List<string> success_users { get; set; }
        /// <summary>
        /// 对接用户编号
        /// </summary>
        public List<FailUserOutput> fail_users { get; set; }
    }

    /// <summary>
    /// 失败订单输出信息
    /// </summary>
    public class FailUserOutput
    {
        /// <summary>
        /// 订单号
        /// </summary>
        public string api_user_id { get; set; }
        /// <summary>
        /// 失败原因
        /// </summary>
        public string reason { get; set; }
    }
}
